<template>
  <div class="class-list-box flex">
    <div class="item flex-one">
      <div class="left">
        <img :src="classItem.picUrl" alt="" />
      </div>
      <div class="right">
        <div class="name">{{ classItem.name }}</div>
        <div class="description">{{ classItem.rcmdText }}</div>
        <div class="price">￥{{ classItem.originalPrice }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Paylist",
  data() {
    return {};
  },
  props: {
    classItem: {
      type: Object,
    },
  },
};
</script>

<style scoped lang="less">
.class-list-box {
  .item {
    width: 500px;
    height: 200px;
    border-bottom: 1px solid skyblue;
    .left {
      position: relative;
      width: 180px;
      height: 180px;
      // flex: 1;
      // margin-right: 20px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .right {
      // padding-left: 20px;
      width: 300px;
      // background-color: skyblue;
      div {
        margin: 10px 0;
      }
      .name {
        font-size: 20px;
      }
      .description {
        // text-indent: 1em;
        color: #7e7e7e;
      }
      .price {
        color: skyblue;
      }
    }
  }
}
</style>